# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=python-hcloud
pkgver=1.18.2
pkgrel=1
pkgdesc="Official Hetzner Cloud python library"
arch=('any')
url="https://github.com/hetznercloud/hcloud-python"
license=('MIT')
replaces=('hcloud-python')
provides=('hcloud-python')
depends=('python-requests' 'python-dateutil' 'python-future')
makedepends=('python-setuptools')
source=("$pkgname"-$pkgver.tar.gz::https://github.com/hetznercloud/hcloud-python/archive/v${pkgver}.tar.gz)
sha512sums=('da71f5590514d45b630662b1bedf7907e5ba33a48617131615377724e1377a2776f979c00e50521c513052b4f540224439e048e2e1215973b76c55a8a20e1a45')

build() {
  cd "$srcdir/hcloud-python-$pkgver"

  python setup.py build
}

package() {
  cd "$srcdir/hcloud-python-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et:
